export interface ResData<T> {
  code: number
  message: string
  data: T
}


export interface Pagination {
  currentPage: number
  pageSize: number
  total: number
}


/**
 * 表单数据接口
 */
export interface FormData {
  id?: string
  tmName: string
  logoUrl: string
  createdAt?: string
  updatedAt?: string
}


/**
 * 品牌数据接口
 */
export interface Record {
  id?: string
  tmName: string
  logoUrl: string
  createdAt?: string
  updatedAt?: string
}

// trademarklist 接口
export interface TrademarkList {
  records: Record[]
  searchCount: boolean
  size: number
  total: number
  current: number
}

export type ResTrademarkList = ResData<TrademarkList>

// 品牌Logo上传响应接口
export interface UploadResponse {
  url: string
  filename?: string
  size?: number
}

export type ResUploadResponse = ResData<UploadResponse>
